package com.endpoint.author.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 稿费收入明细统计表
 * </p>
 *
 * @author Jack_Li
 * @since 2024-07-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AuthorIncomeDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 作家ID
     */
    private Long authorId;

    /**
     * 作品ID,0表示全部作品
     */
    private Long bookId;

    /**
     * 收入日期
     */
    private Date incomeDate;

    /**
     * 订阅总额
     */
    private Integer incomeAccount;

    /**
     * 订阅次数
     */
    private Integer incomeCount;

    /**
     * 订阅人数
     */
    private Integer incomeNumber;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
